<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title> <?php echo ($action); ?> | <?php echo get_opinion('title');?></title>

    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

<meta name="renderer" content="webkit|ie-comp|ie-stand">

<meta name="description" content="DJCMS"/>
<meta name="keywords" content="DJCMS"/>
<!-- bootstrap 3.0.2 -->
<link href="/php_now/djcms/Public/AdminLTE/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<!-- font Awesome -->
<link href="/php_now/djcms/Public/AdminLTE/css/font-awesome.css" rel="stylesheet" type="text/css"/>
<!-- Ionicons -->
<link href="/php_now/djcms/Public/AdminLTE/css/ionicons.min.css" rel="stylesheet" type="text/css"/>
<!-- Theme style -->
<link href="/php_now/djcms/Public/AdminLTE/css/AdminLTE.css" rel="stylesheet" type="text/css"/>

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script type="text/javascript" src="/php_now/djcms/Public/share/js/html5.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->

<!-- jQuery 2.0.2 -->
<!--<script type="text/javascript" src="/php_now/djcms/Public/share/js/jquery-2.0.2.min.js"></script>-->
<script type="text/javascript" src="/php_now/djcms/Public/share/js/jquery-1.9.0.min.js"></script>


<style>

    .form-group .control-label {

        float: left;
        width: 150px;
        padding-top: 5px;
        text-align: right;
        line-height: 24px;
    }

    .form-group .controls {

        margin-left: 170px;
    }

    .form-group .controls .radio {
        display: inline;
        padding-left: 0px;
        padding-right: 20px;
        vertical-align: baseline;
        line-height: 30px;
    }

    .form-group .controls .large {

        width: 60%;
    }

    .form-group .controls select {

        width: 60%;
    }

    .form-group .controls .form-control {

        display: inline;
    }

    .form-group .controls .help-inline {
        padding-left: 10px;
        color: #595959;
    }

    .form-actions {

        margin-left: 170px;
    }

    .dropdown-checkboxes div {
        padding: 1px;
        padding-left: 10px;
    }

    .btn {
        margin: 2px;

    }

    .pagination {
        margin: 0px 0;
    }

</style>

</head>
<body class="skin-blue">

<?php echo W('Common/header');?>

<div class="wrapper row-offcanvas row-offcanvas-left">
    <?php echo W('Common/sideMenu');?>
    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <?php echo ($action); ?>
                <small><?php echo get_opinion('title');?></small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="<?php echo ($module_url); ?>"><i class="fa fa-dashboard"></i> <?php echo ($module); ?></a></li>
                <li class="active"><?php echo ($action); ?></li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">

            <div class="row">
                <div class="col-md-6">
                    <div class="box box-warning">
                        <div class="box-header">
                            <h3 class="box-title">系统通知</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">


                            <div class="well">

                                <h4>版本信息</h4>

                                当前版本: DJCMS <?php echo get_opinion('software_version');?> &nbsp; 发布时间:
                                <?php echo get_opinion('software_build');?> &nbsp;


                                <a href="<?php echo U('Admin/System/update');?>">检查更新</a>

                            </div>

                            <div class="well">

                                <h4>QQ讨论</h4>
                                群号：526294885

                                <h4>信息反馈</h4>
                                Email：77957404@qq.com

                            </div>


                        </div>
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="box box-danger">
                        <div class="box-header">
                            <h3 class="box-title">用户系统信息</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">


                            <div class="row ">


                                <div class="col-md-3">

                                    <img style="width: 100%" src="/php_now/djcms/Public/baracktocat.jpg" alt=""/>
                                </div>


                                <div class="col-md-6  ">

                                    <h1><?php echo ($user["user_name"]); ?></h1>



                                    <p>昵称: <?php echo ($user["user_nicename"]); ?> </p>

                                    <p>邮箱: <?php echo ($user["user_email"]); ?> </p>

                                    <p>注册时间: <?php echo ($user["user_registered"]); ?> </p>

                                    <!--end span8-->


                                </div>

                            </div>

                            <div class="row ">

                                <br/>

                            </div>


                            <div class="row">

                                <div class=" col-xs-6">
                                        <!-- small box -->
                                        <div class="small-box bg-green">
                                            <div class="inner">
                                                <h3>
                                                    <?php echo ($PostCount); ?>篇
                                                </h3>

                                                <p>
                                                    文章
                                                </p>
                                            </div>
                                            <div class="icon">
                                                <i class="ion ion-stats-bars"></i>
                                            </div>
                                            <a href="<?php echo U('Admin/Posts/index');?>" class="small-box-footer">
                                                所有文章 <i class="fa fa-arrow-circle-right"></i>
                                            </a>
                                        </div>
                                    </div>
                                    <!-- ./col -->

                                <div class=" col-xs-6">
                                        <!-- small box -->
                                        <div class="small-box bg-yellow">
                                            <div class="inner">
                                                <h3>
                                                    <?php echo ($UserCount); ?>名
                                                </h3>

                                                <p>
                                                    注册用户
                                                </p>
                                            </div>
                                            <div class="icon">
                                                <i class="ion ion-person-add"></i>
                                            </div>
                                            <a href="<?php echo U('Admin/Access/index');?>" class="small-box-footer">
                                                用户管理 <i class="fa fa-arrow-circle-right"></i>
                                            </a>
                                        </div>
                                    </div>
                                    <!-- ./col -->

                            </div>


                        </div>
                    </div>
                </div>

            </div>
            <div class="row">


                <div class="col-md-6">
                    <div class="box box-success">
                        <div class="box-header">
                            <h3 class="box-title">关于我们</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">
                            <div class="well">
                                <h4>V.K Chow GameCC Studio @ 道君科技开发团队</h4>
                                <a href="http://www.gamecc.cn">GameCC主页</a>
                                <h4>核心开发人员</h4>
                                叶敏&nbsp;&nbsp;&nbsp;
                                石崇&nbsp;&nbsp;&nbsp;
                            </div>
                            <div class="well">
                                <h4>联系方式</h4>
                                邮箱：<a href="mailto:77957404@qq.com">77957404@qq.com</a>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="col-md-6">
                    <div class="box box-primary">
                        <div class="box-header">
                            <h3 class="box-title">其他信息</h3>
                        </div>
                        <!-- /.box-header -->
                        <div class="box-body">

                            <div class="well">
                                <h4>Notice</h4>
                                微信模块入口现在加入插件中显示
                            </div>

                            <div class="well">
                                <h4>获取最新源码</h4>
                                Git China:<a
                                    href="https://git.oschina.net/gamecc_cn">https://git.oschina.net/gamecc_cn</a>
                            </div>
                            <div class="well">

                                <?php echo hook('AdminIndex', 'Widget');?>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

        </section>
        <!-- /.content -->
    </aside>
    <!-- /.right-side -->
</div>
<!-- ./wrapper -->

<!-- Bootstrap -->
<script src="/php_now/djcms/Public/AdminLTE/js/bootstrap.min.js" type="text/javascript"></script>
<!-- AdminLTE App -->
<script src="/php_now/djcms/Public/AdminLTE/js/AdminLTE/app.js" type="text/javascript"></script>

<!-- iCheck -->
<script src="/php_now/djcms/Public/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>

<script>
    function a_confirm() {
        var msg = "您真的确定要这样做么吗？\n\n请确认！";
//        alert(msg);

        if (confirm(msg) == true) {
            return true;
        } else {
            return false;
        }
    }

</script>


<script>


    function refreshWarningNum(selector1) {
        var num = $(selector1).find("li").length;
        $("#warning_box_num").html(num);
        $("#warning_box_num2").html(num);

    }


    //require iCheck
    $(document).ready(function () {


        $("input[type='checkbox'], input[type='radio']").iCheck({
            checkboxClass: 'icheckbox_minimal',
            radioClass: 'iradio_minimal'
        });


        $('#check-all').on('ifChecked', function (event) {
            $('input').iCheck('check');
        });
        $('#check-all').on('ifUnchecked', function (event) {
            $('input').iCheck('uncheck');
        });
    });
</script>


<script>
        function fetchWarningList() {
            var url = '<?php echo U("Admin/Index/checkTodo");?>';
            $.get(url, function (data) {
                if (data != 'none') {
                    $('#warning_box').html(data);
                    refreshWarningNum('#warning_box');
                } else {
                    $('#warning_box').html("");
                    refreshWarningNum('#warning_box');
                }
            });
        }
        function clearWarningList() {
            var url = '<?php echo U("Admin/Index/checkTodoCacheClear");?>';
            $.get(url, function (data) {
            });
            fetchWarningList();
        }

        $(document).ready(function () {

            fetchWarningList();

            $('.notifications-menu').click(function () {
                clearWarningList();
            });


        });



    </script>

<script>

        $(document).ready(function () {
            try
            {
                fetchPostCount();
            }
            catch (e)
            {

            }
        });


        function fetchPostCount() {
            var url = '<?php echo U("Admin/Posts/countAll");?>';
            $.get(url, function (data) {
                if (data != 'none') {

                    /**
                     * {
                        status: 1,
                        info: {
                        publish: "4514",
                        unverified: "0",
                        reverify: "0",
                        draft: "4",
                        preDel: "1"
                        },
                        url: ""
                        }
                     */
                    var dataObj = eval("(" + data + ")");//转换为json对象
                    var obj = jQuery.parseJSON(data);


                    $('#admin-posts-index a').append('<small class="badge pull-right bg-green">' + obj.info.single.publish + '</small>');
                    $('#admin-posts-page a').append('<small class="badge pull-right bg-green">' + obj.info.page.publish + '</small>');

                    if (obj.info.unverified != 0) {
                        $('#admin-posts-unverified a').append('<small class="badge pull-right bg-yellow">' + obj.info.single.unverified + '</small>');
                    }

                    if (obj.info.reverify != 0) {
                        $('#admin-posts-reverify a').append('<small class="badge pull-right bg-red">' + obj.info.single.reverify + '</small>');
                    }

//                    $('#Admin-Posts-draft a').append('<small class="badge pull-right bg-yellow">'+obj.info.draft+'</small>');
//                    $('#Admin-Posts-recycle a').append('<small class="badge pull-right bg-yellow">'+obj.info.preDel+'</small>');

                } else {


                }
            });
        }
    </script>


</body>
</html>